package com.lx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController2 {

    @RequestMapping("hello")
    public String hello2(Model model){
        model.addAttribute("msg","使用注解方式实现MVC");
        return "hello";
    }

    @RequestMapping("hello3")
    public String hello3(Model model){
        model.addAttribute("msg","hello3");
        return "hello";
    }
}
